package user;
import ia.*;

import java.util.Scanner;

public class Admin extends User {
    public Admin(String name) {
        super(name);
        this.ias = new IA[]{
                null,
                new Findbook(),
                new Addbook(),
                new Deletebook(),
                new Displaybook(),
                new Exitsystem()
        };
    }

    public int menu() {
        System.out.println("-----------管理员菜单---------");
        System.out.println("1.查找图书");
        System.out.println("2.新增图书");
        System.out.println("3.删除图书");
        System.out.println("4.显示图书");
        System.out.println("5.退出系统");
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你接下来的操作");
        int choice = sc.nextInt();
        return choice;
    }
}
